#include "SmartHomeMonitorServer.hpp"
#include "Configuration.hpp"
int main()
{
    Configuration *configure = Configuration::getInstance();
    configure->loadFromFile();
    MyLogger::getInstance().setLogDirectory(configure->get("log_file"));
    SmartHomeMonitorServer server(std::stoi(configure->get("port")),
                                  configure->get("ip"),
                                  std::stoul(configure->get("thread_num")),
                                  std::stoul(configure->get("task_num"))
                                  );
    server.start();
    return 0;
}

